package com.pan.admin.module.channel.service.impl;

import com.pan.admin.module.channel.dao.LoanChannelStatisticDao;
import com.pan.admin.module.channel.entity.LoanChannelFormRateStatistic;
import com.pan.admin.module.channel.entity.LoanChannelRateStatistic;
import com.pan.admin.module.channel.entity.LoanChannelStatistic;
import com.pan.admin.module.channel.entity.qo.LoanChannelStatisticQO;
import com.pan.admin.module.channel.service.LoanChannelStatisticService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


/**
 * 渠道分析统计Service业务层处理
 *
 * @author ts
 * @date 2023-09-12
 */
@Service
public class LoanChannelStatisticServiceImpl implements LoanChannelStatisticService {
    @Autowired
    private LoanChannelStatisticDao loanChannelStatisticDao;

    @Override
    @Transactional(readOnly = true)
    public List<LoanChannelStatistic> listUv(LoanChannelStatisticQO loanChannelStatisticQO) {
        return loanChannelStatisticDao.listUv(loanChannelStatisticQO);
    }

    @Override
    @Transactional(readOnly = true)
    public List<LoanChannelStatistic> listPv(LoanChannelStatisticQO loanChannelStatisticQO) {
        return loanChannelStatisticDao.listPv(loanChannelStatisticQO);
    }

    @Override
    @Transactional(readOnly = true)
    public List<LoanChannelStatistic> listSumUv(LoanChannelStatisticQO loanChannelStatisticQO) {
        return loanChannelStatisticDao.listSumUv(loanChannelStatisticQO);
    }

    @Override
    @Transactional(readOnly = true)
    public List<LoanChannelStatistic> listSumPv(LoanChannelStatisticQO loanChannelStatisticQO) {
        return loanChannelStatisticDao.listSumPv(loanChannelStatisticQO);
    }

    @Override
    @Transactional(readOnly = true)
    public List<LoanChannelStatistic> listUserOld(LoanChannelStatisticQO loanChannelStatisticQO) {
        return loanChannelStatisticDao.listUserOld(loanChannelStatisticQO);
    }

    @Override
    @Transactional(readOnly = true)
    public List<LoanChannelStatistic> listUserRegister(LoanChannelStatisticQO loanChannelStatisticQO) {
        return loanChannelStatisticDao.listUserRegister(loanChannelStatisticQO);
    }

    @Override
    @Transactional(readOnly = true)
    public List<LoanChannelStatistic> listUserForm(LoanChannelStatisticQO loanChannelStatisticQO) {
        return loanChannelStatisticDao.listUserForm(loanChannelStatisticQO);
    }

    @Override
    @Transactional(readOnly = true)
    public List<LoanChannelStatistic> listUserMarket(LoanChannelStatisticQO loanChannelStatisticQO) {
        return loanChannelStatisticDao.listUserMarket(loanChannelStatisticQO);
    }

    @Override
    @Transactional(readOnly = true)
    public List<LoanChannelStatistic> listMarketSum(LoanChannelStatisticQO loanChannelStatisticQO) {
        return loanChannelStatisticDao.listMarketSum(loanChannelStatisticQO);
    }

    @Override
    @Transactional(readOnly = true)
    public List<LoanChannelRateStatistic> listBaseRate(LoanChannelStatisticQO loanChannelStatisticQO) {
        return loanChannelStatisticDao.listBaseRate(loanChannelStatisticQO);
    }

    @Override
    @Transactional(readOnly = true)
    public List<LoanChannelRateStatistic> listBaseRateSum(LoanChannelStatisticQO loanChannelStatisticQO) {
        return loanChannelStatisticDao.listBaseRateSum(loanChannelStatisticQO);
    }

    @Override
    @Transactional(readOnly = true)
    public List<LoanChannelFormRateStatistic> listFormRate(LoanChannelStatisticQO loanChannelStatisticQO) {
        return loanChannelStatisticDao.listFormRate(loanChannelStatisticQO);
    }
}
